package com.bezdelnick.forum.dao;

import com.bezdelnick.forum.domain.Answer;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: Bezdelnick
 * Date: 18.07.12
 * Time: 12:29
 * To change this template use File | Settings | File Templates.
 */
public interface IAnswerDao {
    List<Answer> loadAnswers();
    Answer getAnswerById(long id);
    List<Answer> loadAnswersByQuestionId(long id);
    boolean insertAnswer(Answer answer);
    boolean updateAnswer(Answer answer);
    boolean deleteAnswer(long id);
    boolean deleteAnswersByQuestionId(long id);
}
